.class final Les/j30$a;
.super Ljava/lang/Thread;
.source "NetFileSystem.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/j30;->a(Landroid/content/Context;Ljava/lang/String;Les/j30$d;Z)Les/j30$e;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Les/j30$d;

.field final synthetic c:Landroid/content/Context;

.field final synthetic d:Ljava/lang/String;


# direct methods
.method constructor <init>(Ljava/lang/String;Les/j30$d;Landroid/content/Context;Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/j30$a;->a:Ljava/lang/String;

    iput-object p2, p0, Les/j30$a;->b:Les/j30$d;

    iput-object p3, p0, Les/j30$a;->c:Landroid/content/Context;

    iput-object p4, p0, Les/j30$a;->d:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    .line 1
    :try_start_0
    iget-object v0, p0, Les/j30$a;->a:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->V(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 2
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->n0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 3
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->O(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    if-eqz v1, :cond_6

    if-nez v2, :cond_0

    goto/16 :goto_1

    .line 4
    :cond_0
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->K(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 5
    iget-object v5, p0, Les/j30$a;->c:Landroid/content/Context;

    invoke-static {v5, v4}, Les/j30;->a(Landroid/content/Context;Ljava/lang/String;)Lcom/estrongs/android/pop/netfs/INetFileSystem;

    move-result-object v4

    if-eqz v4, :cond_5

    .line 6
    new-instance v3, Les/j30$e;

    invoke-direct {v3}, Les/j30$e;-><init>()V

    .line 7
    instance-of v5, v4, Lcom/estrongs/fs/impl/pcs/PcsFileSystem;

    const/4 v6, 0x1

    const/4 v7, 0x0

    if-eqz v5, :cond_1

    .line 8
    check-cast v4, Lcom/estrongs/fs/impl/pcs/PcsFileSystem;

    .line 9
    invoke-virtual {v4, v1, v2}, Lcom/estrongs/fs/impl/pcs/PcsFileSystem;->c(Ljava/lang/String;Ljava/lang/String;)[J

    move-result-object v0

    if-eqz v0, :cond_3

    .line 10
    aget-wide v1, v0, v7

    iput-wide v1, v3, Les/j30$e;->a:J

    .line 11
    aget-wide v1, v0, v7

    aget-wide v4, v0, v6

    sub-long/2addr v1, v4

    iput-wide v1, v3, Les/j30$e;->b:J

    goto :goto_0

    .line 12
    :cond_1
    instance-of v5, v4, Les/r30;

    if-eqz v5, :cond_2

    .line 13
    check-cast v4, Les/r30;

    invoke-virtual {v4, v1, v2}, Les/r30;->b(Ljava/lang/String;Ljava/lang/String;)[J

    move-result-object v0

    if-eqz v0, :cond_3

    .line 14
    aget-wide v1, v0, v7

    iput-wide v1, v3, Les/j30$e;->a:J

    .line 15
    aget-wide v1, v0, v7

    aget-wide v4, v0, v6

    sub-long/2addr v1, v4

    iput-wide v1, v3, Les/j30$e;->b:J

    goto :goto_0

    .line 16
    :cond_2
    invoke-interface {v4, v1, v2, v0}, Lcom/estrongs/android/pop/netfs/INetFileSystem;->getLeftSpaceSize(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)J

    move-result-wide v0

    .line 17
    iput-wide v0, v3, Les/j30$e;->b:J

    const-wide/16 v0, 0x0

    .line 18
    iput-wide v0, v3, Les/j30$e;->a:J

    .line 19
    :cond_3
    :goto_0
    iget-object v0, p0, Les/j30$a;->b:Les/j30$d;

    if-eqz v0, :cond_4

    .line 20
    iget-object v0, p0, Les/j30$a;->b:Les/j30$d;

    invoke-interface {v0, v3}, Les/j30$d;->a(Les/j30$e;)V

    .line 21
    :cond_4
    sget-object v0, Les/j30;->e:Ljava/util/HashMap;

    monitor-enter v0
    :try_end_0
    .catch Lcom/estrongs/android/pop/netfs/NetFsException; {:try_start_0 .. :try_end_0} :catch_0

    .line 22
    :try_start_1
    sget-object v1, Les/j30;->e:Ljava/util/HashMap;

    iget-object v2, p0, Les/j30$a;->d:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 23
    monitor-exit v0

    goto :goto_2

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw v1

    .line 24
    :cond_5
    iget-object v0, p0, Les/j30$a;->b:Les/j30$d;

    if-eqz v0, :cond_8

    .line 25
    iget-object v0, p0, Les/j30$a;->b:Les/j30$d;

    invoke-interface {v0, v3}, Les/j30$d;->a(Les/j30$e;)V

    goto :goto_2

    .line 26
    :cond_6
    :goto_1
    iget-object v0, p0, Les/j30$a;->b:Les/j30$d;

    if-eqz v0, :cond_7

    .line 27
    iget-object v0, p0, Les/j30$a;->b:Les/j30$d;

    invoke-interface {v0, v3}, Les/j30$d;->a(Les/j30$e;)V
    :try_end_2
    .catch Lcom/estrongs/android/pop/netfs/NetFsException; {:try_start_2 .. :try_end_2} :catch_0

    :cond_7
    return-void

    :catch_0
    move-exception v0

    .line 28
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_8
    :goto_2
    return-void
.end method
